package thientan

class UserLoggingFilters {

    def filters = {
        homeSecure(uri : '/**') {
            before = {
				if(!session.isLogged && !actionName.equals('login') && !actionName.equals('doLogin')) {
					redirect(controller : 'user', action:'login')
				}
            }
            after = { Map model ->

            }
            afterView = { Exception e ->

            }
        }
    }
}
